<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
</head>
<body>
    <form action="${pageContext.request.contextPath}/loginServlet" method="post">
        用户名：<input type="text" name="username" value="${cookie.rememberMe.value}"/><br/>
        密码： <input type="password" name="password"/><br/>
        验证码:<input type="text" name="checkCode"/>
        <img src="${pageContext.request.contextPath}/checkCode"/><br/>

        记住用户名:<input type="checkbox" name="rememberMe" value="yes"/><br/>

        <input type="submit" value="登录"><br/>

        <div style="color: red;">
            <%--显示登录错误信息--%>
            ${msg}
        </div>
    </form>
</body>
</html>
